<%--
  Created by IntelliJ IDEA.
  User: root
  Date: 5/11/17
  Time: 11:22 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="modal-body form-horizontal">
    <form name='bookTypeForm'>

        <div class="form-group">
            <label for="title" class="col-sm-3 control-label">书名：</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" ng-model="bookType.classificationName" placeholder="书名" name="classificationName" required >
            </div>
            <div class="col-md-2">
                <p class="form-control-static">
                    <code ng-show="bookTypeForm.classificationName.$error.required">必填</code>
                </p>
            </div>
        </div>
    </form>
    <div id="error-alert" class="alert alert-danger fade in" role="alert" ng-show="errorMsg">
        <p id="error-message">
            错误：{{errorMsg}}
        </p>
    </div>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
    <button type="button" class="btn btn-primary" ng-click="save()" ng-disabled="!bookTypeForm.$valid">保存</button>
</div>
